﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MsForgeReboot.Framework.Entities;

namespace MsForgeReboot.Framework.ViewModels {
    public class PageAddViewModel {
        public User Author { get; set; }

        /// <summary>
        ///   Gets or sets the body.
        /// </summary>
        [DataType(DataType.Html)]
        [Required(AllowEmptyStrings = false)]
        //[UIHint("tinymce_jquery_full")]
        [AllowHtml]
        public string Body { get; set; }

        /// <summary>
        ///   Gets or sets the id.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        ///   Gets or sets the published.
        /// </summary>
        [DataType(DataType.DateTime)]
        [Display(Name = "Publish On")]
        public DateTime Published { get; set; }

        /// <summary>
        ///   Gets or sets the title.
        /// </summary>
        [Required(AllowEmptyStrings = false)]
        [MaxLength(200)]
        public string Title { get; set; }

        /// <summary>
        ///   Gets or sets the URL title.
        /// </summary>
        /// <value> The URL title. </value>
        /// <example>
        ///   My Blog Post = my-blog-post
        /// </example>
        [MaxLength(200)]
        [Required(AllowEmptyStrings = false)]
        public string UrlPointer { get; set; }

        public int SectionID { get; set; }
    }
}